package com.dong.controller;

import com.dong.framework.Controller;
import com.dong.framework.RequestMapping;
import com.dong.framework.RequestParam;
import com.dong.pojo.User;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

@Controller
@RequestMapping("/user")
public class UserController {

    @RequestMapping("/list")
    public void getList(@RequestParam("ph")String phone,@RequestParam("we")String weight, String length, String uname, User user,
                        HttpServletRequest request, HttpServletResponse response, HttpSession session){
        System.out.println("hello");
        System.out.println("user"+user);
        System.out.println("身高"+length);
        System.out.println("体重"+weight);
        System.out.println("名字"+uname);
        System.out.println("电话"+phone);
        System.out.println(request);
        System.out.println(response);
        System.out.println(session);
    }
}
